package com.corona.game;

import com.corona.Game;

import java.util.function.Consumer;

/* compiled from: Action.java */
/* loaded from: pokewilds.jar:com/pkmngen/game/Do2.class */
class Do2<T> extends Action implements Consumer<T> {
    T val;

    public Do2(T val, Action nextAction) {
        super(new Object[0]);
        this.val = val;
        this.nextAction = nextAction;
    }

    @Override // java.util.function.Consumer
    public void accept(T t) {
    }

    @Override // com.corona.game.Action
    public void step(Game game) {
        accept(this.val);
        game.actionStack.remove(this);
        game.insertAction(this.nextAction);
    }
}
